<html>
<head><meta charset="utf-8"><title>I-prioritize #79033 Confusing lifetime error: expected `(&amp;L… · t-compiler/wg-prioritization/alerts · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/245100-t-compiler/wg-prioritization/alerts/index.html">t-compiler/wg-prioritization/alerts</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize.20.2379033.20Confusing.20lifetime.20error.3A.20expected.20.60(.26L.E2.80.A6.html">I-prioritize #79033 Confusing lifetime error: expected `(&amp;L…</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216665347"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize%20%2379033%20Confusing%20lifetime%20error%3A%20expected%20%60%28%26L%E2%80%A6/near/216665347" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> triagebot <a href="https://rust-lang.github.io/zulip_archive/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize.20.2379033.20Confusing.20lifetime.20error.3A.20expected.20.60(.26L.E2.80.A6.html#216665347">(Nov 13 2020 at 20:00)</a>:</h4>
<p><span class="user-group-mention" data-user-group-id="3111">@WG-prioritization/alerts</span> issue <a href="https://github.com/rust-lang/rust/issues/79033">#79033</a> has been requested for prioritization.</p>
<h1><a href="https://forge.rust-lang.org/compiler/prioritization/procedure.html#assign-priority-to-unprioritized-issues-with-i-prioritize-label">Procedure</a></h1>
<ul>
<li>Priority?</li>
<li>Regression?</li>
<li>Notify people/groups?</li>
<li>Needs <code>I-nominated</code>?</li>
</ul>



<a name="217121732"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize%20%2379033%20Confusing%20lifetime%20error%3A%20expected%20%60%28%26L%E2%80%A6/near/217121732" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> apiraino <a href="https://rust-lang.github.io/zulip_archive/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize.20.2379033.20Confusing.20lifetime.20error.3A.20expected.20.60(.26L.E2.80.A6.html#217121732">(Nov 18 2020 at 11:17)</a>:</h4>
<p>I would mark this as <code>P-medium</code> like the sister issue mentioned (<a href="https://github.com/rust-lang/rust/issues/41078">#41078</a>)</p>



<a name="217184224"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize%20%2379033%20Confusing%20lifetime%20error%3A%20expected%20%60%28%26L%E2%80%A6/near/217184224" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize.20.2379033.20Confusing.20lifetime.20error.3A.20expected.20.60(.26L.E2.80.A6.html#217184224">(Nov 18 2020 at 19:25)</a>:</h4>
<p>I kind of think this should be <code>P-high</code> (disclaimer: I'm the author of the issue). On stable, the error is:</p>
<blockquote>
<p>expected <code>&amp;Location&lt;'_&gt;</code>, found <code>&amp;Location&lt;'_&gt;</code></p>
</blockquote>
<p>but nightly (maybe beta too now), shows:</p>
<blockquote>
<p>expected <code>(&amp;Location&lt;'_&gt;,)</code>, found <code>(&amp;Location&lt;'_&gt;,)</code></p>
</blockquote>
<p>which I find quite weird. The error is weird enough as it is since it shows two things that are equal, but it's even weirder that it has changed to showing tuples on nightly. I'm guessing the reason the two things look equal but are not is because of constraints on inference variables? I don't know enough about the type-checker to know for sure though.</p>



<a name="217190633"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize%20%2379033%20Confusing%20lifetime%20error%3A%20expected%20%60%28%26L%E2%80%A6/near/217190633" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize.20.2379033.20Confusing.20lifetime.20error.3A.20expected.20.60(.26L.E2.80.A6.html#217190633">(Nov 18 2020 at 20:15)</a>:</h4>
<p>bump, unprioritized</p>



<a name="217196308"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize%20%2379033%20Confusing%20lifetime%20error%3A%20expected%20%60%28%26L%E2%80%A6/near/217196308" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize.20.2379033.20Confusing.20lifetime.20error.3A.20expected.20.60(.26L.E2.80.A6.html#217196308">(Nov 18 2020 at 21:03)</a>:</h4>
<p>I think P-medium since it's a diagnostics bug with a workaround</p>



<a name="217197614"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize%20%2379033%20Confusing%20lifetime%20error%3A%20expected%20%60%28%26L%E2%80%A6/near/217197614" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> triagebot <a href="https://rust-lang.github.io/zulip_archive/stream/245100-t-compiler/wg-prioritization/alerts/topic/I-prioritize.20.2379033.20Confusing.20lifetime.20error.3A.20expected.20.60(.26L.E2.80.A6.html#217197614">(Nov 18 2020 at 21:14)</a>:</h4>
<p>Issue <a href="https://github.com/rust-lang/rust/issues/79033">#79033</a>'s prioritization request has been removed.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>